#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    ui->comboBox->addItem("香辣鸡腿堡");
    ui->comboBox->addItem("鸡排堡");
    ui->comboBox->addItem("芝士鸡腿堡");

    ui->comboBox_2->addItem("小鸡腿");
    ui->comboBox_2->addItem("小鸡翅");
    ui->comboBox_2->addItem("披萨");

    ui->comboBox_3->addItem("可乐");
    ui->comboBox_3->addItem("雪碧");
    ui->comboBox_3->addItem("芬达");
}

Widget::~Widget()
{
    delete ui;
}

void Widget::on_pushButton_clicked()
{
    QString str;
    str = ui->comboBox->currentText() + " " + ui->comboBox_2->currentText() + " " + ui->comboBox_3->currentText();
    ui->label_4->setText(str);
}

